Rendering static content

Rendering 2D nodes only once

You can improve the performance of your application by caching the rendering of nodes that become static after a certain point. However, take into consideration that caching decreases the performance before the node becomes static. When you enable caching for a 2D node, this node generates an FBO for itself, renders itself to it, and for all future frames uses this generated FBO instead of rendering itself again. Use this method to cache complex 2D nodes and speed up their rendering.

To render 2D nodes only once:

  1. In the Project select the 2D node you want to render only once.
  2. In the Properties click , and add any of the following properties:
    • Use Cache Self when the node is static or becomes static after a certain point.
    • Use Cache Children when child nodes are static or become static after a certain point.
    • Use Cache Result when the node itself and all of its child nodes become static after a certain point. Using Cache Result is the fastest way, because it removes the need to check for self or child caching.

Rendering 3D nodes only once

For nodes in your application that do not have to be rendered every frame, create a composer that renders such 3D nodes only once. When you want to render nodes only once, you have to mark and collect them for rendering using one of these filters:

See Filters.

This procedure shows how to render nodes only once using the Tag Filter.

To render nodes only once using the Tag Filter:

  1. In the Project select all nodes you want to render only once, and in the Properties add a tag to the Tags property.
    For example, add a tag Render once.
  2. In the Library press Alt and right-clickComposing > Pipeline and select Tag Filter.
    Use this filter to collect all tagged nodes.
  3. In the Properties in the Included Tags drop-down menu select the tag you used to tag the nodes in the first step.
  4. In the Library press Alt and right-click Composing > Composers and select Render Pass.
    You need this render pass to render the nodes you want to render only once.
  5. In the Properties set properties:
    • Object Source to the tag filter you created earlier.
    • Enable the Render Once property.

See also

Filters

Rendering best practices

Optimizing the rendering of layouts

Setting nodes for efficient rendering

Preventing overdraw with the Sorting Filter

Rendering transparent nodes

Measuring the performance of your application

Best practices